<template>
  <div class="home">
  <link rel="stylesheet" href="//at.alicdn.com/t/font_1592243_lvs5rir3js.css">
	<div id="nav">
		<router-link :to="{name:'recommend'}">推荐音乐</router-link>
		<router-link :to="{name:'rank'}">排行榜</router-link>
		<router-link :to="{name:'search'}">搜索</router-link>
	</div>
  <!-- 显示子路由内容 -->
      <router-view/>
  </div>
</template>

<script>
// @ is an alias to /src

export default {
}
</script>
<style lang="scss" scoped>
#nav {
  width: 100%;
  height: 45px;
  font-size: 12px;
  line-height: 45px;
  text-align: center;
  background-color: white;
  display: flex;
  justify-content: space-between;
  position: fixed;
  top: 0;
  z-index: 10;
  a {
    width: 30%;
    font-size: 14px;
    color: black;
    &.router-link-exact-active {
      font-size: 16px;
      font-weight: bold;
      color: peru;
    }
  }
}
</style>